﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBasic.Domain.RBAC
{
    /// <summary>
    /// 用户表
    /// </summary>
    //public class User
    //{
    //    [Key]
    //    public int UserId { get; set; }

    //    public string UserName { get; set; } = string.Empty;

    //    public string Password { get; set; } = string.Empty;

    //    public int RoleId { get; set; }
    //    public Role Role { get; set; }

    //    public bool IsDeleted { get; set; } = false;
    //}

    public class User
    {
        public int Id { get; set; }
        [Required]
        public string Username { get; set; }
        [Required]
        public string Password { get; set; }
        public int RoleId { get; set; }
        public Role Role { get; set; }
    }
}
